package com.itheima.service;

import com.itheima.constant.QuoteException;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Setmeal;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;


public interface SetMealService {
    public PageResult findPage(QueryPageBean queryPageBean);

    Result findById(Integer id);

    List<Setmeal> findAll();
    //根据套餐id查询关联表中检查组的id数据
    List<Integer> findCheckGroupIdsBySetmealId(Integer id);

    void add(Setmeal setmeal, Integer[] checkgroupIds) throws QuoteException;

      void delete(Integer id);

    void edit(Setmeal setmeal, Integer[] checkgroupIds) throws  QuoteException;
}
